package com.yuwj.chinaa.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.yuwj.chinaa.R;
import com.yuwj.chinaa.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class ContactUsActivity extends BaseActivity {
    @BindView(R.id.iv_qrcode)
    ImageView ivQrCode;

    @Override
    public int setCustomContentViewResourceId() {
        return R.layout.activity_contact_us;
    }

    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, ContactUsActivity.class);
        return intent;
    }

    @Override
    public void initParam() {

    }

    @Override
    public void initView() {
//        Bitmap bitmapWithQRCode = CodeUtils.createImage(entityUser.getInvitationCode(), 400, 400, null);
//        if (bitmapWithQRCode != null) {
//            ivQrCode.setImageBitmap(bitmapWithQRCode);
//        } else {
//            ToastUtil.getInstance().shortLength(context, "二维码生成失败");
//        }
    }

    @Override
    public void initOperator() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.iv_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                onBackPressed();
                break;
        }
    }
}
